From: Florian Eckert Date: Thu, 17 Jun 2021 10:24:43 +0000 (+0200) Subject: luci-app-nlbwmon: add missing cbi-button class for database backup X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=4ab591a24d29ff79d3f3b07dc6ed440f8b358ac5;p=project%2Fluci.git luci-app-nlbwmon: add missing cbi-button class for database backup Signed-off-by: Florian Eckert (cherry picked from commit 6f6ec9f56cc24be9f432b0a88a29f46277dad7d5) --- diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/backup.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/backup.js index c5fcfe5cf8..0b13e6fdf2 100644 --- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/backup.js +++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/backup.js @@ -52,12 +52,14 @@ return view.extend({ E('h5', [ _('Restore Database Backup') ]), E('p', [ E('button', { + 'class': 'cbi-button', 'click': ui.createHandlerFn(this, 'handleArchiveUpload') }, [ _('Restore') ]) ]), E('h5', [ _('Download Database Backup') ]), E('p', [ E('button', { + 'class': 'cbi-button', 'click': ui.createHandlerFn(this, 'handleArchiveDownload', hostname) }, [ _('Generate Backup') ]) ])